package com.ideawarehouse.data;
// default package

import java.util.HashSet;
import java.util.Set;


/**
 * Group entity. @author MyEclipse Persistence Tools
 */

public class Group  implements java.io.Serializable {


    // Fields    

     private Integer groupId;
     private Group parentGroup;
     private String groupName;
     private String protectionLevel;
     private Set moderators = new HashSet(0);
     private Set usersInGroup = new HashSet(0);
     private Set childGroups = new HashSet(0);


    // Constructors

    /** default constructor */
    public Group() {
    }

    
    /** full constructor */
    public Group(Group parentGroup, String groupName, String protectionLevel, Set moderators, Set usersInGroup, Set childGroups) {
        this.parentGroup = parentGroup;
        this.groupName = groupName;
        this.protectionLevel = protectionLevel;
        this.moderators = moderators;
        this.usersInGroup = usersInGroup;
        this.childGroups = childGroups;
    }

   
    // Property accessors

    public Integer getGroupId() {
        return this.groupId;
    }
    
    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Group getParentGroup() {
        return this.parentGroup;
    }
    
    public void setParentGroup(Group parentGroup) {
        this.parentGroup = parentGroup;
    }

    public String getGroupName() {
        return this.groupName;
    }
    
    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getProtectionLevel() {
        return this.protectionLevel;
    }
    
    public void setProtectionLevel(String protectionLevel) {
        this.protectionLevel = protectionLevel;
    }

    public Set getModerators() {
        return this.moderators;
    }
    
    public void setModerators(Set moderators) {
        this.moderators = moderators;
    }

    public Set getUsersInGroup() {
        return this.usersInGroup;
    }
    
    public void setUsersInGroup(Set usersInGroup) {
        this.usersInGroup = usersInGroup;
    }

    public Set getChildGroups() {
        return this.childGroups;
    }
    
    public void setChildGroups(Set childGroups) {
        this.childGroups = childGroups;
    }
   








}